package com.atguigu.gmall.web.controller;

import io.swagger.annotations.Api;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Api(tags = "登录功能-远程调用")
@Controller
public class LoginController {

    //  http://passport.gmall.com/login.html?originUrl=http://www.gmall.com/
    //登录功能页面跳转
    @GetMapping("/login.html")
    public String loginPage(@RequestParam("originUrl") String originUrl, Model model){
        model.addAttribute("originUrl",originUrl);
        return "/login";
    }
}
